projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f482ee
)
(shell-get-current-command): Make regexp more selective.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 10 Feb 1994 08:35:48 +0000
(08:35 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 10 Feb 1994 08:35:48 +0000
(08:35 +0000)
lisp/shell.el
patch
|
blob
|
history
diff --git
a/lisp/shell.el
b/lisp/shell.el
index 05179863d940ad030dcffad5102211b69b824e6b..a759aedc8ea110dab98896796afba844421a3945 100644
(file)
--- a/
lisp/shell.el
+++ b/
lisp/shell.el
@@
-625,7
+625,7
@@
See `shell-command-regexp'."
(defun shell-get-current-command ()
"Function that returns the current command including arguments."
(save-excursion
- (if (looking-at "
\\s *[^;&|
]")
+ (if (looking-at "
[\t ]*[^;&|\n
]")
(goto-char (match-end 0)))
(buffer-substring
(progn (shell-backward-command 1) (point))